const React = require('react');
import {Link} from 'react-router';
const BookCategoryItem=require('./bookCategoryItem.jsx');

var page = React.createClass({
    getDefaultProps:function(){
        return{
            book:{
                id:0,
                bookname:'',
                author:'',
                desc:'',
                updateDate:'',
                typeName:'',
                isOver:''
            }
        }
    },
    componentDidMount:function(){   

    },
    render: function () {
        return ( 
                <Link to={"/chapterlist/"+this.props.book.id} className="book">      
                    <div className="book-title">
                        <h3>{this.props.book.bookname}</h3>
                        <p>{this.props.book.author}/{this.props.book.isOver}/{this.props.book.typeName}</p>
                    </div>
                    <div className="book-desc">
                        {this.props.book.desc}
                        <span className="book-tip">【点击阅读】</span>
                    </div>
                    <div className="book-update">
                        更新：{this.props.book.updateDate}
                    </div>
                </Link>
        );
      }
});

module.exports = page;


